<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class upload_model extends CI_Model {

	public function upload_vdo($vdo)
	{
		$this->db->insert('vdo' ,$vdo);
	}

	public function get_vdo($vdo_uniqid)
	{
		$this->db->select('vdo_id');
		$this->db->where('vdo_uniqid',$vdo_uniqid);
		$query = $this->db->get('vdo');
		return $query->result_array();
	}

	public function insert_thumb($vdo_thumb)
	{
		$this->db->insert('vdo_thumb' ,$vdo_thumb);
	}

	public function get_server($server_id)
	{
		$this->db->where('server_id' ,$server_id);
		$query = $this->db->get('server');
		return $query->result_array();
	}

}